﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Localysator
{
	class UpdateInfo : ArgusLib.Xml.UpdateInfo
	{
		public UpdateInfo()
			: base() { }

		//public UpdateInfo()
		//	: base("buildName", ArgusLib.Xml.ReleaseStatus.Alpha, new Version(1, 0, 0, 0), "homepageLink", "downloadLink", "directDownloadLink", 0, "line1", "line2") { }

		public static void DownloadAsync(Action<UpdateInfo> callback)
		{
			UpdateInfo.DownloadAsync<UpdateInfo>(callback);
		}

		protected override string GetDownloadSource()
		{
			return "https://dl.dropboxusercontent.com/u/104710622/Updates/Localysator.xml";
		}

		protected override string GetXmlRootName()
		{
			return "LocalysatorUpdate";
		}
	}
}
